/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ac.pbp.core.db;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 *
 * @author Agienthea
 */
public abstract class DaoHelper extends HibernateDaoSupport {
    @Autowired
    public void init(@Qualifier("sessionFactory") SessionFactory sessionFactory) {
            setHibernateTemplate(createHibernateTemplate(sessionFactory));
    }
}
